<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>申请管理</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <jsp:include page="_Chair.jsp" />
</div>

<div class="right_col" role="main" style="height:656px">
    <div class="row">
        <div class="col-md-12">
            <ul class="list-inline">
                <li>申请状态</li>
            </ul>
            <hr>

            <table class="table">
                <thead>
                <tr>
                    <th>申请编号</th>
                    <th>申请数目（元）</th>
                    <th>申请描述</th>
                    <th>申请时间</th>
                    <th>申请人</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${applicationList}" var="application">
                    <tr>
                        <td>${application.id}</td>
                        <td>${application.money }</td>
                        <td>${application.cause }</td>
                        <td>${application.inputTime}</td>
                        <td>${application.memberName}</td>
                        <td>${application.statusName}</td>
                        <td>
                        <a class="btn btn-info btn-xs" href="<c:url value="/chair/argeeApp?id=${application.id}"/>">通过</a>
                        <a class="btn btn-danger btn-xs " href="<c:url value="/chair/disargeeApp?id=${application.id}"/>">不通过</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>